package com.example.thread.demo.myrunnable;

public class MyRunnable implements Runnable {

    private int num;

    public MyRunnable() {
    }

    public MyRunnable(int num) {
        this.num = num;
    }

    @Override
    public void run() {
        try {
            Thread.sleep(3000);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        System.out.println(Thread.currentThread().getName() + " running....num = " + num);
    }
}
